{extend name="public/base"}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/admin/css/news.css" media="all" />
{/block}


{block name="main"}
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <form class="layui-form">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" value="" name="username" placeholder="请输入产品名字" class="layui-input search_input">
            </div>
            <button type="submit" class="layui-btn search_btn">查询</button>
        </div>
    </form>
</blockquote>
<div class="layui-form news_list">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col>
            <col width="19%">
            <col width="19%">
            <col width="19%">
            <col width="15%">
            <col width="15%">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th>帐号</th>
            <th>头像</th>
            <th>昵称</th>
            <th>仓库管理员</th>
            <th>注册时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
                <td>{$vo.username}</td>
                <td><img src="{$vo.memberRoleInfo.headimgurl}" /></td>
                <td>{$vo.memberRoleInfo.nickname}</td>
                <td class="save_field">
                    {eq name="vo.is_warehouse_keeper" value="1"}
                    <a href="javascript:;" data-url="{:url('save_warehouse_keeper', ['id' => $vo['id'], 'value' => '0'])}" data-title="取消仓库管理员？" class="layui-btn layui-btn-mini">是</a>
                    {else /}
                    <a href="javascript:;" data-url="{:url('save_warehouse_keeper', ['id' => $vo['id'], 'value' => '1'])}" data-title="设置为仓库管理员？" class="layui-btn layui-btn-mini layui-btn-danger">否</a>
                    {/eq}
                </td>
                <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                <td>{$vo.status}</td>
                <td class="save_field">
                    <a class="layui-btn layui-btn-normal  layui-btn-mini Add_btn no_save" data-url="{:url('product_save', ['id' => $vo['id']])}" data-title="查看">查看</a>
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div id="page"></div>
{/block}

{block name="javascript"}
{/block}